package com.lottery.material.dao.portal.menuLevel;

import com.lottery.material.dao.base.BaseDao;
import com.lottery.material.entity.conf.MenuLevelConfig;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author houjie
 * @Description 分类
 * @DATE Created on 2019-04-10 9:31
 */
@Repository
public interface MenuLevelConfigDao extends BaseDao<MenuLevelConfig, Integer> {

    /**
    * @Author: houjie
    * @Description: 根据分类编号查询分类
    * @Date: 2019/4/10 10:16
    */
    MenuLevelConfig findByMenuCode(String menuCode);

    /**
     * description: 查询一级类别且加入到模块的菜单
     * author sunny
     * createDate 2019-04-10 下午 2:33
     * @param levelType
     * @return
     */
    List<MenuLevelConfig> findByLevelTypeAndIsJoinModuleEqualsOrderBySortAsc(Integer levelType, Integer isJoinModule);

    /**
     * description: 查询二级类别菜单
     * author sunny
     * createDate 2019-04-10 下午 6:00
     * @param levelType
     * @return
     */
    List<MenuLevelConfig> findByLevelTypeOrderBySortAsc(Integer levelType);
}
